package com.xpd.spring.demo;

import com.xpd.spring.demo.biz.UserBiz;
import com.xpd.spring.demo.mapper.UserMapper;
import com.xpd.spring.demo.web.UserController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@ContextConfiguration(classes=AnnoConfig.class)
public class Demo1 {
    @Autowired
    UserMapper userMapper;
    @Autowired
    UserBiz userBiz;
    @Autowired
    UserController userController;
@Test

    public void test(){
    System.out.println("userBiz = " + userBiz);
    System.out.println("userMapper = " + userMapper);
    System.out.println("userController = " + userController);
}
}
